from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import Rule

rules = {
        'china':(Rule(LinkExtractor(allow='article.*.html',
                           restrict_xpaths='//div[@id="rank-defList"]//div[@class="wntjItem item_defaultView clearfix"]'),
             callback='parse_item', follow=True),
        # Rule(LinkExtractor(restrict_xpaths='//*[@id="rank-defList"]//div[@class="pages"]//a[13]'))
    )}